package com.tjetc.dao;

import com.tjetc.entity.Category;

import java.util.List;

/*
 * 菜品分类
 */
public interface CategoryMapper {
    //添加新的种类
    int insert(Category category);

    //根据id进行删除
    int deleteById(Integer id);

    //根据id进行查找
    Category select(Integer id);

    //用商家id搜索菜系
    //待删除
    List<Category> selectByMerchantId(Integer id);


    List<Category> selectBytype(Integer typeId);

    List<Category> selectByList(List<Integer> list);

    List<Category> selectAll();

    Integer update(Category type);

    Category selectByName(String name);
}
